# $Id: PKGBUILD 65632 2012-02-21 15:35:13Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: farid abdelnour <farid at atelier-labs.org>
# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.org>

pkgname=twolame
pkgver=0.3.13
pkgrel=6
pkgdesc="An optimized MPEG Audio Layer 2 (MP2) encoder"
arch=('i686' 'x86_64')
url="http://www.twolame.org/"
license=('LGPL')
depends=('libsndfile')
options=('!libtool')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('4113d8aa80194459b45b83d4dbde8ddb')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr \
              --disable-static
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR=${pkgdir} install
}
